package com.ysx.oa.holiday.dao;

import com.ysx.oa.holiday.bean.HolidayBean;
import com.ysx.oa.role.bean.UserRoleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.BaseMapper;

import java.util.List;

/**
 * @Author: 王伟雄
 * @Date: 2021/11/21 17:24
 */
@Mapper
public interface HolidayDao extends BaseMapper<HolidayBean> {

    /**
     * 方法描述:通过学生id查找学生请假信息
     * @author: 王伟雄
     * @date: 2021/11/25 14:55 [id] java.util.List<com.ysx.oa.holiday.bean.HolidayBean>
     */
    List<HolidayBean> findByStudent(Integer id);

    /**
     * 方法描述:通过班级id查找学生的请假信息
     * @author: 王伟雄
     * @date: 2021/11/22 22:16 [id] java.util.List<com.ysx.oa.holiday.bean.HolidayBean>
     */
    List<HolidayBean> findByTeacher(@Param(value = "id") Integer id, @Param(value = "flag")Integer flag);

}
